#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int k = 0;
	while (scanf("%d", &k) != EOF)
	{
		int i = 0;
		for (i = 1; i <= k; i++)
		{
			int j = 0;
			for (j = 0; j < k - i; j++)
			{
				printf(" ");
			}
			for (j = 0; j < 2 * i - 1; j ++ )
			{
				printf("*");
			}
			printf("\n");
		}
		for (i = 1; i < k; i++)
		{
			int j = 0;
			for (j = 0; j < i; j++)
			{
				printf(" ");
			}
			for (j = 0; j < 2 * (k - i) - 1; j++)
			{
				printf("*");
			}
			printf("\n");

		}
	}
	return 0;
}